<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html  xmlns="http://www.w3.org/1999/xhtml" 
	   xmlns:h="http://java.sun.com/jsf/html" 
	   xmlns:f="http://java.sun.com/jsf/core"
       xmlns:ui="http://java.sun.com/jsf/facelets" 
       xmlns:a4j="http://richfaces.org/a4j" 
       xmlns:rich="http://richfaces.org/rich"
      >
    <body>
	    <ui:composition>
	    <f:view locale="#{localeBean.locale}">
	 		<h:form>
		        <rich:toolbar height="26px">
		            <rich:dropDownMenu mode="ajax">
		                <f:facet name="label">
		                    <h:panelGroup>		                       
		                        <h:outputText value="#{msg.inicio}"/>
		                    </h:panelGroup>
		                </f:facet>
		                <rich:menuItem submitMode="client"  onclick="document.location.href='/Cmaq/cmaqpages/indexMain.xhtml'">
		                    <h:outputText value="#{msg.infocmaq}"/>

		                </rich:menuItem>
		                <rich:menuItem submitMode="client" onclick="document.location.href='/Cmaq/cmaqpages/index.xhtml'">
		                    <h:outputText value="#{msg.salir}" />
		                </rich:menuItem>		                
		            </rich:dropDownMenu>
		 
		            <rich:dropDownMenu mode="ajax">
		                <f:facet name="label">
		                    <h:panelGrid cellpadding="0" cellspacing="0" columns="2" style="vertical-align:middle">
		                        <h:outputText value="#{msg.gestionUsuarios}" />
		                    </h:panelGrid>
		                </f:facet>
		                <rich:menuItem submitMode="client" onclick="document.location.href='/Cmaq/cmaqpages/usuarios.xhtml'">
		                    <h:outputText value="#{msg.mantemientoUsuarios}" />
		                </rich:menuItem>		               	                
		            </rich:dropDownMenu>
		            
		             <rich:dropDownMenu mode="ajax">
		                <f:facet name="label">
		                    <h:panelGrid cellpadding="0" cellspacing="0" columns="2" style="vertical-align:middle">
		                        <h:outputText value="#{msg.controlHerramientas}" />
		                    </h:panelGrid>
		                </f:facet>
		               <rich:menuItem submitMode="client" onclick="document.location.href='/Cmaq/cmaqpages/herramientas.xhtml'">
		                    <h:outputText value="#{msg.mantenimientoHerra}" />
		                </rich:menuItem>	
		                       
		            </rich:dropDownMenu>
		            
		            
		             <rich:dropDownMenu mode="ajax">
		                <f:facet name="label">
		                    <h:panelGrid cellpadding="0" cellspacing="0" columns="2" style="vertical-align:middle">
		                        <h:outputText value="#{msg.controlMaquinas}" />
		                    </h:panelGrid>
		                </f:facet>
		                 <rich:menuItem submitMode="client" onclick="document.location.href='/Cmaq/cmaqpages/maquinas.xhtml'">
		                    <h:outputText value="#{msg.mantenimientoMaq}" />
		                </rich:menuItem>		               
		            </rich:dropDownMenu>
		            
		            <rich:dropDownMenu mode="ajax">
		                <f:facet name="label">
		                    <h:panelGrid cellpadding="0" cellspacing="0" columns="2" style="vertical-align:middle">
		                        <h:outputText value="#{msg.controlFT}" />
		                    </h:panelGrid>
		                </f:facet>
		                 <rich:menuItem submitMode="client" onclick="document.location.href='/Cmaq/cmaqpages/frentesTrabajo.xhtml'">
		                    <h:outputText value="#{msg.mantenimientoFT}" />
		                </rich:menuItem>		                
		            </rich:dropDownMenu>
		             <rich:dropDownMenu mode="ajax">
		                <f:facet name="label">
		                    <h:panelGrid cellpadding="0" cellspacing="0" columns="2" style="vertical-align:middle">
		                        <h:outputText value="#{msg.registros}" />
		                    </h:panelGrid>
		                </f:facet>
		                 <rich:menuItem submitMode="client" onclick="document.location.href='/Cmaq/cmaqpages/informeDiarioMaquinas.xhtml'">
		                    <h:outputText value="#{msg.infoDiaMaquinas}" />
		                </rich:menuItem>
		                <rich:menuItem submitMode="client" onclick="document.location.href='/Cmaq/cmaqpages/informeDiarioHerramientas.xhtml'">
		                    <h:outputText value="#{msg.infoDiaHerr}" />
		                </rich:menuItem>
		                 <rich:menuItem submitMode="client" onclick="document.location.href='/Cmaq/cmaqpages/historicoMaquinas.xhtml'">
		                    <h:outputText value="#{msg.histMaquinas}" />
		                </rich:menuItem>    
		                 <rich:menuItem submitMode="client" onclick="document.location.href='/Cmaq/cmaqpages/historicoHerramientas.xhtml'">
		                    <h:outputText value="#{msg.histHerramientas}" />
		                </rich:menuItem>       
		            </rich:dropDownMenu>
		           
		            
			        <h:commandLink 	actionListener="#{localeBean.countryLocale('es')}"
									immediate="true" render="@form">	
									<h:graphicImage alt="GIF" url="/resources/img/besp.gif"
										/>	
					</h:commandLink>
	
					<h:commandLink actionListener="#{localeBean.countryLocale('pt')}"
								immediate="true" render="@form">	
								<h:graphicImage alt="GIF" url="/resources/img/bpor.gif"
									/>
	
					</h:commandLink>
		        </rich:toolbar>
		    
		 	</h:form>
		 	</f:view>
	    </ui:composition>
    </body>
</html>


